package com.changgou.goods.dao;

import com.changgou.goods.pojo.Spec;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SpecMapper extends Mapper<Spec> {
    @Select("SELECT DISTINCT t1.* FROM tb_spec t1,tb_category t2 WHERE t1.template_id=t2.template_id and t2.name=#{cateName}")
    List<Spec> findSpecByCateName(@Param("cateName") String cateName);
}
